#menu 
{
 clear:both;
 float:left;
 margin:0;
 padding:0;
 border-bottom:3px solid #0000ff; /* Bottom line options */
 width:100%;
 font-family:Verdana, Geneva, sans-serif;
 font-size:90%;
 z-index:1000;
 position:relative;
}

#menu ul 
{
 margin:0;
 padding:0;
 list-style:none;
 float:right;
 position:relative;
 right:50%;
}

#menu ul li 
{
 margin:0 0 0 1px;
 padding:0;
 float:left;
 position:relative;
 left:50%;
 top:1px;
}

#menu ul li a 
{
 display:block;
 margin:0;
 padding:.6em .5em .4em;
 font-size:1em;
 line-height:1em;
 background:#ddd;
 text-decoration:none;
 color:#444;
 font-weight:bold;
 border-bottom:1px solid #000;
}

#menu ul li.active a 
{
 color:#fff;
 background:#000;
}

#menu ul li a:hover 
{
 background:#36f; /* Top menu background color */
 color:#fff;
 border-bottom:1px solid #03f;
}

#menu ul li:hover a,
#menu ul li.hover a 
{
 background:#36f; /* Top menu background color */
 color:#fff;
 border-bottom:1px solid #03f;
}


#menu ul ul 
{
 display:none; /* Sub menus are hidden */
 position:absolute;
 top:2em;
 left:0;
 right:auto; /*resets the right:50% on the parent ul */
 width:10em; /* width of the drop-down menus */
}

#menu ul ul li 
{
 left:auto;  /*resets the left:50% on the parent li */
 margin:0; /* Reset the margin from the top menu */
 clear:left;
 width:100%;
}

#menu ul ul li a,
#menu ul li.active li a,
#menu ul li:hover ul li a,
#menu ul li.hover ul li a 
{
 font-size:.8em;
 font-weight:normal; /* resets the bold set for the top level menu items */
 background:#eee;
 color:#444;
 line-height:1.4em; /* overwrite line-height value from top menu */
 border-bottom:1px solid #ddd; /* sub menu item horizontal lines */
}

#menu ul ul li a:hover,
#menu ul li.active ul li a:hover,
#menu ul li:hover ul li a:hover,
#menu ul li.hover ul li a:hover 
{
 background:#36f; /* Sub menu background color */
 color:#fff;
}

#menu ul li:hover ul,
#menu ul li.hover ul
{
 display:block;
}